<include file="Public:header" />
<div id="user">
	<if condition="$is_log eq false">
		<h2>会员登录</h2>
		<form method="post" name="login" action="__APP__/User/loginSubmit">
			<label>用户名：<input type="text" name="user" class="text" /></label>
			<label>密　码：<input type="password" name="password" class="text" /></label>
			<label class="yzm">验证码：<input type="text" name="verify" class="text code" /> <img src="__APP__/Public/verify" onclick="javascript:this.src='__APP__/Public/verify/tm/'+Math.random();" class="code" /></label>
			<p><input type="submit" name="send" value="登录" onclick="return checkLogin();" class="submit" /> <a href="__APP__/User/register">注册会员</a> <a href="###">忘记密码?</a></p>
		</form>
	<else />
		<h2>会员信息</h2>
		<div class="a">您好，<strong>{$name}</strong> 欢迎光临</div>
		<div class="b">
			<img src="__PUBLIC__/Images/{$face}" alt="{$user}" />
			<a href="###">个人中心</a>
			<a href="###">我的评论</a>
			<a href="__APP__/User/logout">退出登录</a>
		</div>
	</if>
	
	<h3>最近登录会员 <span>────────────</span></h3>
	<if condition="$lastLogin neq null">
	<volist name="lastLogin" id="lastLogin">
	<dl>
		<dt><img src="__PUBLIC__/Images/{$lastLogin.face}" alt="{$lastLogin.user}" /></dt>
		<dd>{$lastLogin.user}</dd>
	</dl>
	</volist>
	</if>
</div>
<div id="news">
	<if condition="$topNews eq null">
	<h3>暂无头条新闻！</h3>
	<else />
	<h3><a href="__APP__/List/details/id/{$topNews[0].id}" target="_blank">{$topNews[0].title}</a></h3>
	<p>内容摘要：{$topNews[0].info}<a href="__APP__/List/details/id/{$topNews[0].id}" target="_blank">[查看全文]</a></p>
	<p class="link">
	<volist name="topNews" id="topNews" offset="1" length="4">
		<a href="__APP__/List/details/id/{$topNews.id}" target="_blank">{$topNews.title}</a> {$topNews.line}
	</volist>
	</p>
	</if>
	<ul>
		<if condition="$topTenNews eq null">
		<li>暂无文章！</li>
		<else />
		<volist name="topTenNews" id="topTenNews">
		<li><em>{$topTenNews.date|date="Y-m-d",###}</em><a href="__APP__/List/details/id/{$topTenNews.id}" target="_blank">{$topTenNews.title}</a></li>
		</volist>
		</if>
	</ul>
	
</div>
<div id="pic">
	<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="scriptmain" name="scriptmain" codebase="http://download.macromedia.com/pub/shockwave/cabs/
	flash/swflash.cab#version=6,0,29,0" width="268" height="193">
	      <param name="movie" value="__PUBLIC__/Images/lbxml.swf">
	      <param name="quality" value="high">
	      <param name="scale" value="noscale">
	      <param name="LOOP" value="false">
	      <param name="menu" value="false">
	      <param name="wmode" value="transparent">
	      <embed src="__PUBLIC__/Images/lbxml.swf" width="268" height="193" loop="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" salign="T" name="scriptmain" menu="false" wmode="transparent">
	</object>
</div>
<div id="rec">
	<h2>特别推荐</h2>
	<ul>
		<if condition="$rec eq null">
		<li>暂无推荐文章！</li>
		<else />
		<volist name="rec" id="rec">
		<li><em>{$rec.date|date="Y-m-d",###}</em><a href="__APP__/List/details/id/{$rec.id}" target="_blank">{$rec.title}</a></li>
		</volist>
		</if>
	</ul>
</div>
<div id="sidebar-right">
	<div class="adver"><script type="text/javascript" src="__PUBLIC__/Js/siderbar_adver.js"></script></div>
	<div class="hot">
		<h2>本月热点</h2>
		<ul>
		<if condition="$hotNews eq null" >
		<li>暂无本月热点文章</li>
		<else />
		<volist name="hotNews" id="hotNews">
			<li><em>{$hotNews.date|date="Y-m-d",###}</em><a href="__APP__/List/details/id/{$hotNews.id}" target="_blank">{$hotNews.title}</a></li>
		</volist>
		</if>
		</ul>
	</div>
	<div class="comm">
		<h2>本月热门评论文章</h2>
		<ul>
			<if condition="$hotComArt">
			<volist name="hotComArt" id="hotComArt">
			<li><em>{$hotComArt.date|date="Y-m-d",###}</em><a href="__APP__/List/details/id/{$hotComArt.id}" target="_blank">{$hotComArt.title}</a></li>
			</volist>
			<else />
			<li>本月暂无热门评论文章</li>
			</if>
		</ul>
	</div>
	<div class="vote">
		<h2>调查投票</h2>
		<h3>{$voteSub.title}</h3>
		<form method="post" action="__APP__/Vote/vote" target="_blank">
			<if condition="$voteItemData">
			<volist name="voteItemData" id="voteItemData">
			<label><input type="radio" name="vote" value="{$voteItemData.id}" /> {$voteItemData.title}</label>
			</volist>
			</if>
			<p><input type="submit" value="投票" name="send" /> <input type="button" onclick="javascript:window.open('__APP__/Vote/show')" value="查看" /></p>
		</form>
	</div>
</div>
<div id="picnews">
	<h2>图文资讯</h2>
	<if condition="$picNews">
	<volist name="picNews" id="picNews">
	<dl>
		<dt><a href="__APP__/List/details/id/{$picNews.id}" target="_blank"><img src="__PUBLIC__/Uploads/s_{$picNews.thumbnail}" alt="{$picNews.title}" /></a></dt>
		<dd><a href="__APP__/List/details/id/{$picNews.id}" target="_blank">{$picNews.title}</a></dd>
	</dl>
	</volist>
	</if>
</div>
<div id="newslist">
	<if condition="$fourNav neq null">
	<volist name="fourNav" id="fourNav">
	<div class="{$fourNav.class}">
		<h2><a href="__APP__/List/show/id/{$fourNav.id}" target="_blank">更多</a>{$fourNav.category_name}</h2>
		<ul>
			<if condition="$fourNav.art eq null">
			<li>此栏目下暂无文章</li>
			<else />
			<php>
			$end = count($fourNav['art']);
			</php>
			<for start="0" end="$end">
			<php>
			$art = $fourNav['art'];
			</php>
			<li><em>{$art[$i].date|date="Y-m-d",###}</em><a href="__APP__/List/details/id/{$art[$i].id}" target="_blank">{$art[$i].title}</a></li>
			</for>
			</if>
		</ul>
	</div>
	</volist>
	</if>
</div>
<include file="Public:footer" />